package school.dao;

import java.sql.Connection;

import java.sql.SQLException;

import util.DBUtil;

public class DDLTest {

	public static void main(String[] args) {
		Connection con = DBUtil.getConnection();
		String sql = "alter table student add  last_exam date comment '最后的考试时间'";
		try {
			java.sql.PreparedStatement ps = con.prepareStatement(sql);
			int r = ps.executeUpdate();
			System.out.println(r);
			DBUtil.close(ps);
			DBUtil.close(con);
		} catch (SQLException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
